package com.sise.rsc.repository;

import com.sise.rsc.entity.WorkingArea;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface WorkingAreaRepository extends JpaRepository<WorkingArea, Integer> {

    WorkingArea findWorkingAreaByAddressName(String addressName);

    WorkingArea findWorkingAreaById(Integer id);

    @Query("FROM WorkingArea ")
    List<WorkingArea> findAllWorkingAreas();


}
